/**
* 
* ====================================================================
*
* @author apov <apov@ymail.com>
*/ 
#pragma once

#include <BaseDefine.h>

class NetServiceOrder{
	enum{
		DEF_MAX_BUFFER=				8000,
	};

public:
	enum{
		DEF_ORDER_BROADCAST=		1,		
	};

	void reset();
	bool is_broadcast_order();
	void order_broadcast( char* buffer, int size );

	char* get_buffer();
	int get_buffer_size();

	NetServiceOrder();
	virtual ~NetServiceOrder();

protected:

private:
	int order_type_;
	char buffer_[ DEF_MAX_BUFFER ];
	int size_;
};
